Automattic\WooCommerce\Admin\API\NavigationFavorites S

Total Complexity 22
Dependencies 5
Dependents 0
Total lines 309
Lines of code 182
Logical lines of code 50
Comment lines 78
Methods 11
Properties 3

Methods 11

Method Rating Maintainability Complexity Lines of code
register_routes()
S
40 1 86
add_item()
S
56 4 18
get_items()
S
64 3 10
delete_item()
S
64 3 9
get_items_by_current_user()
S
61 2 13
add_item_by_current_user()
S
61 2 13
delete_item_by_current_user()
S
61 2 13
prepare_error()
S
63 2 11
add_item_permissions_check()
S
80 1 3
delete_item_permissions_check()
S
80 1 3
current_user_permissions_check()
S
82 1 3